<?php
/**
 * 描述
 * Created by Paco
 * Date: 2018/12/18 Time: 15:43
 */

namespace App\Http\Controllers\Admin\Test;


use App\Traits\ApiRespond;

class TestController
{
    use ApiRespond;

    public function index()
    {
        $var = null;
        print_r(is_null($var));
//        $redis = app('phpredis');
//        //$redis->setTimeOut('flash_key', 60);
//        $data = ['id' => 1, 'name' => 2];
//        $redis->rPush('flash_key', $data);
//        $leng = $redis->lLen('flash_key');
//        $a = $redis->get('flash_key');
//        $this->throwRespondError(10606, null, [], ['product_name' => $a, 'stock' => $leng]);
    }
}